/**
 * devLocal：本地测试、devOnline：线上测试、production：生产环境
 */
const mode = 'production';
let ROOTPATH = ''; //域名
switch (mode) {
	case 'devLocal':
		ROOTPATH = "http://localhost:8848"
		break;
	case 'devOnline':
		ROOTPATH = "https://xxxxx.cn"
		break;
	case 'production':
		ROOTPATH = "https://dc.huan-sha.net/api"
		break;
	default:
		throw new Error('未配置环境');
		console.log(`未配置环境`);
}
export {
	ROOTPATH
}
